$OpenBSD: patch-lib_byteorder64_h,v 1.1 2015/03/15 08:51:07 ajacoutot Exp $

XXX push upstream

--- lib/byteorder64.h.orig	Thu Mar 12 14:31:31 2015
+++ lib/byteorder64.h	Thu Mar 12 14:31:57 2015
@@ -47,15 +47,10 @@
 
 /* http://stackoverflow.com/a/4410728/94253 */
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__OpenBSD__)
 #  include <endian.h>
 #elif defined(__FreeBSD__) || defined(__NetBSD__)
 #  include <sys/endian.h>
-#elif defined(__OpenBSD__)
-#  include <sys/types.h>
-#  define be16toh(x) betoh16(x)
-#  define be32toh(x) betoh32(x)
-#  define be64toh(x) betoh64(x)
 #endif
 
 /* 64-bit host/network byte-order swap macros */
